package com.ziyun.erp.modules.member.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.member.entity.MemRechargeVO;
import com.ziyun.erp.modules.member.entity.UserBaseInfoEntity;
import io.renren.common.utils.R;
import io.renren.modules.sys.entity.SysUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户基础信息表
 *
 * @author jiangli
 * @email
 * @date 2018-08-01 09:31:39
 */
public interface UserBaseInfoService extends IService<UserBaseInfoEntity> {

    R list(Map<String, Object> params);
    R listMall(Map<String, Object> params);

    Map<String, Object> delete(String ids);

    Map<String, Object> selectByIda(Integer userId);

    int updateUserBaseInfo(UserBaseInfoEntity userBaseInfo);

    //查询会员实体
    UserBaseInfoEntity getEntityByuserId(Integer userId);

    //会员充值
    Map<String, Object> memRecharge(MemRechargeVO memRecharge, SysUserEntity curentUser);

    //重置密码
    Map<String, Object> resetPassword(Integer userId,String password);

    //根据user_type查询手机号码
    List<String> getMobileByDays(int days);

    UserBaseInfoEntity selectReferralsMember(Integer userId);

    Integer getCountByIds(String[] ids);

    //根据用户名查询是否已经存在
    Integer getByName(String name);

    //新增会员
    R addMem(String name, String password, String mobile);

    //查询某会员等级的人数
    Integer count(String param);


}

